package cn.edu.scau.cmi.guihao.domin.singleMultipleModel;

import java.util.ArrayList;
import java.util.List;

import sun.security.jca.GetInstance;

public class Marshal {

	private static List<Marshal> marshals = new ArrayList<Marshal>();
	private String name;
	
	public Marshal(String name) {
		this.name=name;
	}
	
	public static List<Marshal> addInstances(String name){
		if(marshals.size()<=10) {
			marshals.add(new Marshal(name));
		}
		return marshals;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
}
